package me.seu.demo.shardingsphere.repository;

import java.sql.SQLException;
import java.util.List;

/**
 * Base Dao
 *
 * @author liangfeihu
 * @number 53669
 * @since 2021/5/6 上午9:42
 */
public interface BaseRepository<T, P> {

    P addEntity(T entity) throws SQLException;

    void deleteEntity(P primaryKey) throws SQLException;

    List<T> findEntities() throws SQLException;

}
